import request from "@/utils/request";

export function getWoRawByPage(query) {
  return request({
    url: `/system/woRaw/getWoRawByPage`,
    method: "post",
    data: query,
  });
}

// 增加流程模型

export function addWoRaw(query) {
  return request({
    url: `/system/woRaw/addWoRaw`,
    method: "post",
    data: query,
  });
}

/**
 * 增加多个工单业务
 * @param {*} query
 * @returns
 */
export function addWoRaws(query) {
  return request({
    url: `/system/woRaw/addWoRaws`,
    method: "post",
    data: query,
  });
}
/**
 *
 * @param {*} query
 * @returns
 */
export function delWoRaw(query) {
  return request({
    url: `/system/woRaw/delWoRaw`,
    method: "post",
    data: query,
  });
}

export function updateWoRaw(query) {
  return request({
    url: `/system/woRaw/updateWoRaw`,
    method: "post",
    data: query,
  });
}

/**
 * 更新数据修改
 * @param {*} query
 * @returns
 */
export function updateWoRawStatus(query) {
  return request({
    url: `/system/woRaw/updateWoRawStatus`,
    method: "post",
    data: query,
  });
}

export function updateWoRawActualLossValue(query) {
  return request({
    url: `/system/woRaw/updateWoRawActualLossValue`,
    method: "post",
    data: query,
  });
}
